<template>
    <div>
        <button @click="weight()">标准体重计算</button>
    </div>
</template>
<script>
import axios from 'axios';
export default {
    data() {
        return {
        }
    },
    created() {
    },
    mounted() {
    },
    computed: {
    },
    methods: {
        weight() {
            axios.get("http://apis.juhe.cn/fapig/calculator/weight",{
                key:"bddc634a9e4bfe6199b947f6c6dda1ad",
                sex:1,
                role:1,
                height:185,
                weight:92
            },"application/x-www-form-urlencoded")
            .then(res=>{
                console.log(res);
            })
            .catch(e=>{
                console.log(e);
            })
        }
    },
}
</script>
